/*
 * @LastEditors: yuSeen
 * @LastEditTime: 2021-12-04 15:57:06
 * 角色模型
 */
import { Table, Column, Model, BelongsToMany } from 'sequelize-typescript'
import Resource from './resource'
import Role_Resource from './role-resource'



@Table
export default class Role extends Model {
    @Column
    name: string

    @BelongsToMany(() => Resource, () => Role_Resource)
    resource: Resource
}

